home *** CD-ROM | disk | FTP | other *** search
/ Nebula 2 / Nebula Two.iso / SourceCode / Starter / Source / defs.h < prev    next >
Text File  |  1995-06-12  |  735b  |  41 lines

  1.  
  2. /* defs.h - written by Robert Vasvari 6/94 */
  3.  
  4. #define BUFSIZE 1024
  5. #define DOC_EXTENSION "starter"
  6. #define EXTENSION_STRINGS {DOC_EXTENSION,NULL}
  7.  
  8. #define SCALE_RECT(r,ratio) \
  9.     NX_X(r)*=ratio; \
  10.     NX_Y(r)*=ratio; \
  11.     NX_WIDTH(r)*=ratio; \
  12.     NX_HEIGHT(r)*=ratio \
  13.  
  14. #define DIVIDE_RECT(r,ratio) \
  15.     NX_X(r)/=ratio; \
  16.     NX_Y(r)/=ratio; \
  17.     NX_WIDTH(r)/=ratio; \
  18.     NX_HEIGHT(r)/=ratio \
  19.  
  20. #define SCALE_POINT(p,ratio) \
  21.     (p.x)*=ratio; \
  22.     (p.y)*=ratio \
  23.       
  24. #define DIVIDE_POINT(p,ratio) \
  25.     (p.x)/=ratio; \
  26.     (p.y)/=ratio \
  27.       
  28. #define SCALE_SIZE(p,ratio) \
  29.     (p.width)*=ratio; \
  30.     (p.height)*=ratio \
  31.       
  32. #define DIVIDE_SIZE(p,ratio) \
  33.     (p.width)/=ratio; \
  34.     (p.height)/=ratio \
  35.       
  36.  
  37. #define GET_CENTER(r,c) \
  38.     c.x=NX_MIDX(r); \
  39.     c.y=NX_MIDY(r) \
  40.  
  41.